:root {
    --primary: #2d6a4f;
    --secondary: #1b4332;
    --accent: #40916c;
    --light: #f8f9fa;
    --dark: #212529;
    --danger: #dc3545;
    --warning: #ffc107;
    --success: #198754;
    --sidebar-width: 260px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    margin: 0;
    overflow-x: hidden;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--secondary);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    transition: 0.3s;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.2s;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left: 4px solid var(--accent);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 20px;
}

/* GLOBAL LAYOUT */
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; gap: 0; }
.col { flex: 1; padding: 0 10px; box-sizing: border-box; min-width: 0; }

@media (max-width: 768px) {
    .row { flex-direction: column; gap: 15px; }
    .col { width: 100% !important; flex: none; }
}

/* CARDS RESPONSIVOS */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    border: 1px solid #edf2f7;
    overflow: hidden;
}

.card-stats {
    padding: 20px;
    display: flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

/* TABELAS RESPONSIVAS */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 768px) {
    .table thead { display: none; }
    .table tr { 
        display: block; 
        border-bottom: 2px solid #edf2f7; 
        padding: 15px 10px;
        position: relative;
    }
    .table td { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        padding: 8px 10px !important; 
        border: none !important;
        text-align: right;
        font-size: 0.9rem;
    }
    .table td::before { 
        content: attr(data-label); 
        font-weight: 700; 
        text-align: left; 
        color: #64748b;
        font-size: 0.8rem;
        text-transform: uppercase;
        margin-right: 15px;
    }
    .table td:last-child {
        margin-top: 10px;
        justify-content: center;
        background: #f8fafc;
        border-radius: 8px;
        padding: 12px !important;
    }
    .table td:last-child::before { content: none; }
    
    .btn-mobile-full {
        width: 100%;
        justify-content: center;
    }
}

/* BOTÕES E INPUTS */
.btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    text-decoration: none;
}

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* LOGIN REFINADO */
.login-wrapper-fiel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
}

.login-card-fiel {
    background: white;
    padding: 45px 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-sizing: border-box;
}

.login-header-fiel {
    margin-bottom: 30px;
}

.login-header-fiel i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
}

.login-header-fiel h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 5px 0;
}

.login-header-fiel p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1);
    outline: none;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

@media (max-width: 480px) {
    .login-card-fiel {
        padding: 35px 25px;
    }
    .login-header-fiel h2 {
        font-size: 1.5rem;
    }
}
